package com.exigenservices.practice.roadcompanion.server.service;

import com.exigenservices.practice.roadcompanion.server.entity.Points;

import java.awt.*;

/**
 * Created with IntelliJ IDEA.
 * User: Minsk
 * Date: 16.07.13
 * Time: 16:21
 * To change this template use File | Settings | File Templates.
 */
public class DPoint {
    private Points point;


    protected DPoint(long routeId) {
        this.point = new Points();
        point.setRouteID(routeId);
    }

    protected DPoint(Points point) {
        this.point = point;
    }

    public Points getPoints() {
        return point;
    }

    public void setPoint_number(Long point_number) {
        point.setPoint_number(point_number);
    }

    public Long getPoint_number() {
        return point.getPoint_number();
    }

    public void setPoint(Point point) {
        this.point.setPoint(point);
    }

    public void setLocation(double x, double y) {
        this.point.getPoint().setLocation(x, y);
    }


    public Point getPoint() {
        return point.getPoint();
    }

}
